import { CanvasContext, } from "./designType";
import { Dimension } from "./Dimension";
import { Shape } from "./Shape";

export class TopView {
  constructor(
    public dimension: Dimension,    
    public shape: Shape,         
  ) {}

  // 绘制把手的方法
  draw(ctx: CanvasContext): void {
    this.shape.draw(ctx);
  }
}
